package main

import (
	"fmt"
	"errors"
	"os"
	"log"
	"strings"
)

func main() {
	log.Println("start dfsafas")
	logger := log.New(os.Stdout, "aaaa ", log.LstdFlags)
	logger.Println("hhhhh")
	if a, _,error := funA(); error!=nil{
		fmt.Println(error)
	}else {
		fmt.Println(a)
	}
	err := errors.New("haaacccc")
	fmt.Println(err)
	var user = os.Getenv("USER")
	defer func(){
		recover := recover()
		fmt.Println("recoving===========",recover)
	}()
	if user == "" {
		panic([]string{"1","adsf"})
	}

}

func funA() (bool , string,error){
	return false,"aa",errors.New("haah")
}